
package org.darcy.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.darcy.framework.model.PageParam;
import org.darcy.entity.SysLink;

@ApiModel(": SysLinkModel")
@Getter
@Setter
public class SysLinkModel extends PageParam implements Serializable{
	
	private static final long serialVersionUID = 1L;
     
    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value="")
	private Long id;
	
    @ApiModelProperty(value="链接地址")
	private String url;
	
    @ApiModelProperty(value="链接名")
	private String name;
	
    @ApiModelProperty(value="链接介绍")
	private String description;
	
    @ApiModelProperty(value="友链站长邮箱")
	private String email;
	
    @ApiModelProperty(value="友链站长QQ")
	private String qq;
	
    @ApiModelProperty(value="")
	private String favicon;
	
    @ApiModelProperty(value="状态")
	private Byte status;
	
    @ApiModelProperty(value="是否首页显示")
	private Byte homePageDisplay;
	
    @ApiModelProperty(value="备注")
	private String remark;
	
    @ApiModelProperty(value="来源：管理员添加、自动申请")
	private String source;
	
    @ApiModelProperty(value="添加时间")
	private Date createTime;
	
    @ApiModelProperty(value="更新时间")
	private Date updateTime;
	
    
    /**
   	 * model类转化为mybatis plus 查询条件
   	 */
   	public QueryWrapper<SysLink> buildWrapper() {
   		QueryWrapper<SysLink> p = new QueryWrapper<SysLink>();
   		return p;
   	}

}
